package org.angelica.modules.account.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
/**
 * <p>
 * 管理员表
 * </p>
 *
 * @author aizhimin
 * @since 2019-05-12
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("acc_user")
public class AccUserDO {

    private Long id;
    /**
     * 用户名
     */
    private String username;
    /**
     * 密码
     */
    @JsonIgnore
    private String password;
    /**
     * 昵称
     */
    private String nickname;
    /**
     * 所属角色ID
     */
    private Long roleId;
    /**
     * 状态
     */
    private Integer status;
    private Date gmtCreate;
    private Date gmtModified;

    /**
     * 角色名称
     */
    @TableField(exist = false)
    private String roleName;
}
